package com.loongxun.playwithyou.ui.activity;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.ImageView;
import android.widget.TextView;

import com.loongxun.playwithyou.R;

/**
 * 私教协议
 * Created by Administrator on 2017/10/17.
 */
public class ProtocolActivity extends Activity implements View.OnClickListener{

    private TextView tv_top_title;
    private ImageView iv_platform;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_platform);

        initView();
    }

    private void initView() {
        tv_top_title = (TextView) findViewById(R.id.tv_top_title);
        tv_top_title.setText("私教协议");
        findViewById(R.id.iv_back).setOnClickListener(this);

        iv_platform = (ImageView) findViewById(R.id.iv_platform);
        iv_platform.setImageResource(R.mipmap.sjxy);
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.iv_back:
                finish();
                break;
            default:
                break;
        }
    }
}
